#pragma once

#include <maya/MPxContextCommand.h>

class skinPainterContext;

class skinPainterContextCmd:public MPxContextCommand
{
public:
	skinPainterContextCmd();
	virtual ~skinPainterContextCmd();

	virtual MPxContext* makeObj() override;
	virtual MStatus doEditFlags() override;
	virtual MStatus appendSyntax() override;

	static void* creator();
private:
	//void UpdateMeshVtxIndices(const MDagPath& mesh);
	void SplitTriangleVtxRecursive(MIntArray inIndices, MIntArray& outIndices);
	void UpdateInfluenceJnt(const MDagPath& mesh);
public:
	static MString cmdName;
protected:
	skinPainterContext* skinPainterCtx;
};